Crate erg_parser

source ·
Expand description

Implements Parser for Erg. Parser parses the source code to generate AST. The generated ASTs are guaranteed to be identical if the source code is identical. However, identical ASTs may be generated even if the source code is (a bit) different.

Re-exports§

Modules§

  • defines Expr (Expression, the minimum executing unit of Erg).
  • Desugaring syntax sugars.
  • defines ParseError and others.
  • defines and implements Lexer (Tokenizer).
  • implements Parser.
  • defines Token (The minimum unit in the Erg source code that serves as input to the parser).

Macros§